package com.ww.java.generic.method.inherit;

import lombok.Data;
import lombok.ToString;

/**
 * @author wanggw
 * @Date 2023年07月21 23:50
 */
@Data
@ToString
public class ResponseEntity<T> {

    private String code;

    private String msg;

    private T data;

    public ResponseEntity() {
        code = "1";
    }

    public ResponseEntity(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ResponseEntity(T data) {
        this();
        this.data = data;
    }
}
